package com.bizzard;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 宠物之家后端项目启动类
 */

@SpringBootApplication //申明当前类是一个SpringBoot项目的启动类
@MapperScan("com.bizzard.*.mapper")//扫描mapper接口 - 生成Mapper接口的代理对象，Service注入使用
@ServletComponentScan(value = {"com.bizzard.basic.listener"})
public class PetHomeApplication {

    public static void main(String[] args) {
        SpringApplication.run(PetHomeApplication.class);
    }

}
